﻿using System;
using visinia.SmartEngine;
using visinia.SmartEngine.Installer;

public partial class Install : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void INSTALL_Click(object sender, EventArgs e)
    {
        WaitMessage.Visible = true;
        InstallButton.Enabled = false;
        string filename = Server.MapPath("Install.sql");
        InstallerCommon.ExecuteScript(filename);
        Response.Redirect(WebRoots.GetWebRoot);
    }
}

